package login;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-27
 * Time: 21:09
 */
public class Main {

    public static void main(String[] args) {

        try {
            Login login = new Login("admin","123123");
            login.login("admin","123");
        }catch (UserNameException e) {
            //打印函数栈信息
            e.printStackTrace();
        }catch (PassWordException e) {
            //打印函数栈信息
            e.printStackTrace();
        }finally {
            System.out.println("finally被执行，程序继续...");
        }

    }
}
